<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <title>选择流程</title>
  <!--公用样式-->
  <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/comment.css"/>
  <!--页面样式-->
  <link rel="stylesheet" type="text/css" href="${re.contextPath}/plugin/common/css/style.css"/>
  <!--Layui-->
  <link rel="stylesheet" href="${re.contextPath}/plugin/layui/css/layui.css" media="all"/>
  <script type="text/javascript" src="${re.contextPath}/plugin/jquery/jquery-3.2.1.min.js"></script>
  <!--公用样式JS-->
  <script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
  <script type="text/javascript" src="${re.contextPath}/plugin/layui/layui.all.js" charset="utf-8"></script>
  <script type="text/javascript" src="${re.contextPath}/plugin/tools/tool.js"></script>
</head>

<body>
<!--头部-->
<header >
  <div style="align-content: center;margin-top: 100px;width: 100%;">
    <button type="button" class="layui-btn" id="test3"><i class="layui-icon"></i>上传流程图文件</button>
  </div>
</header>
<!--容器-->
<div class="container clearfix"></div>
<!--JQ-->
<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/jquery-1.8.3.min.js"></script>
<!--公用样式JS-->
<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/comment.js"></script>
<!--选择城市js-->
<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/area.js"></script>
<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/select.js"></script>
<script type="text/javascript" charset="utf-8" src="${re.contextPath}/plugin/common/js/tabs.js"></script>
<script>
  layui.use('upload', function () {
    var filename = "";
    var $ = layui.jquery,
            upload = layui.upload;
    //多文件列表示例
    var demoListView = $('#demoList')
            , uploadListIns = upload.render({
      elem: '#test3',
      url: '/admin/workflow/addDeploy', //改成您自己的上传接口
      accept: 'file',
      multiple: true,
      auto: true,
      done: function (res, index, upload) {
        layer.msg("上传成功！");
        window.location.href= "/act/goAct";
      }
      , error: function (index, upload) {
        layer.msg("上传失败！");
      }
    });

  });



</script>




</body>
</html>